package es.aqua.aquac.bl.interfaces;

import java.util.List;

import es.aqua.aquac.exception.GeneralBusinessException;

public interface GeneralBS<E> {

	E insert(E entity) throws GeneralBusinessException;

	void update(E entity) throws GeneralBusinessException;

	void remove(E entity) throws GeneralBusinessException;

	E findById(java.io.Serializable id) throws GeneralBusinessException;

	List<E> findByCriteria(E entity, String prop, Boolean asc) throws GeneralBusinessException;

	List<E> findAll() throws GeneralBusinessException;

	List<E> findAllOrderBy(String prop, Boolean asc) throws GeneralBusinessException;

	List<E> findByProperty(String prop, String value) throws GeneralBusinessException;

}
